home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 723 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.6 KB

  1. Path: news.telepac.pt!usenet
  2. From: jcarlosr@mail.telepac.pt (J.Carlos)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: [help] Calling BTRIEVE functions in C?Hello,
  5. Date: Sat, 06 Jan 1996 15:40:11 GMT
  6. Organization: telepac
  7. Message-ID: <4cm8i7$np0@vivaldi.telepac.pt>
  8. References: <4ch821$ut0@news.doit.wisc.edu>
  9. NNTP-Posting-Host: lis7_p7.telepac.pt
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. tuant@hp-3.cae.wisc.edu (Truong Tuan) wrote:
  13.  
  14. >I am trying to integrate a DOS application to a WINDOWS application(DYNAMICS).
  15. >To do this, I needed to be able to open DYNAMICS' files, which are BTRIEVE files. 
  16. > ...
  17. >However, I could not open the files.  >When I compile MyCode.C, using the Turbo C++(ver.4.5), everything went OK. 
  18. >However, when I selected RUN (from compiler menu bar) , I got an error message:
  19. >Error:  Undefine symbol BTRV(..).
  20.  
  21. >Questions:
  22.  
  23. >1) Could it be the fact that I did not have the BTRIEVE (DOS version) running
  24. >   before I tried to run MyCode.exe?  If so, how do I run BTRIEVE before
  25. >   running my program?
  26.  
  27. No, this is a linker error, the problem is that in Windows the
  28. function that call's BTRIEVE is BTRCALL instead of BTRV, to use BTRV
  29. you must add a C module to your projects that comes with the Btrv
  30. developer kit (something like WBTRINTF.C), you also have to include
  31. the BTRIEVE library in the project.
  32. In Windows you don't 'run' BTRIEVE, keep the DLL's and the EXE in you
  33. path and your first call to the database will handle the
  34. inicialization.
  35.  
  36. >2) Do I need the DOS version of BTRIEVE when I already got the WINDOWS version?
  37.  
  38. No,  you don't ...
  39.  
  40. Regards, J.Carlos
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. >Keywords: 
  65.  
  66.  
  67.  
  68.